minor changes to gtk-config: --cflags doesn't prepend -I@libdir@/glib/include
authorManish Singh <yosh@src.gnome.org>
Thu, 16 Jul 1998 21:24:52 +0000 (21:24 +0000)
committerManish Singh <yosh@src.gnome.org>
Thu, 16 Jul 1998 21:24:52 +0000 (21:24 +0000)
anymore, since glib-config handles it; --libs strips out redundant -L<path>'s
properly (there was code in there to do it before, but it didn't work)

-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk-config.in

index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 08e34e3b904bb9e0ab63eeb99b21ae23209047ec..36472dbe0f63c474be5611186d5162a221e16a51 100644 (file)
@@ -1,3 +1,10 @@
+Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * gtk-config.in: minor changes to gtk-config: --cflags doesn't
+       prepend -I@libdir@/glib/include anymore, since glib-config handles
+       it; --libs strips out redundant -L<path>'s properly (there was
+       code in there to do it before, but it didn't work)
+
 Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtknotebook.h: 
index 26246d70af4c2d1afee6ec039aa4d3c4bf3a2336..7cbc255ff90761cdfaa569a287a078b13235d746 100644 (file)
@@ -50,16 +50,21 @@ while test $# -gt 0; do
           fi
         done
       fi
-      echo -I@libdir@/glib/include $includes @x_cflags@ $glib_cflags
+      echo $includes @x_cflags@ $glib_cflags
       ;;
     --libs)
+      my_glib_libs=
       libdirs=-L@libdir@
       for i in $glib_libs ; do
-        if test $i = -I@libdir@ ; then
-          libdirs=""
+        if test $i != -L@libdir@ ; then
+          if test -z "$my_glib_lib" ; then
+            my_glib_libs="$i"
+          else
+            my_glib_libs="$my_glib_libs $i"
+          fi
         fi
       done
-      echo $libdirs @x_ldflags@ -lgtk-@LT_RELEASE@ -lgdk-@LT_RELEASE@ $glib_libs @x_libs@ -lm
+      echo $libdirs @x_ldflags@ -lgtk-@LT_RELEASE@ -lgdk-@LT_RELEASE@ $my_glib_libs @x_libs@ -lm
       ;;
     *)
       echo "${usage}" 1>&2